package com.zilla.android.zillacore.libzilla.lifecircle.exit;

import android.content.Intent;
import android.os.Bundle;
import com.zilla.android.zillacore.libzilla.Zilla;
import com.zilla.android.zillacore.libzilla.lifecircle.ILifeCircle;

/**
 * Created by chenze on 13-12-2.
 */
public class LifeCicleExit implements ILifeCircle {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        AppManager.getAppManager().addActivity(Zilla.ACTIVITY);
    }

    @Override
    public void onResume() {

    }

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {

    }

    @Override
    public void onPause() {

    }

    @Override
    public void onDestroy() {
        AppManager.getAppManager().finishActivity(Zilla.ACTIVITY);
    }
}
